import 'package:intl/intl.dart';

class DateUtil {
  static String yearMonthDday(int timeStamp) {
    return DateFormat('yyyy-MM-dd').format(DateTime.fromMicrosecondsSinceEpoch(timeStamp * 1000));
  }

  static String yearMonthDdayHourMinute(int timeStamp) {
    return DateFormat('yyyy-MM-dd HH:mm').format(DateTime.fromMicrosecondsSinceEpoch(timeStamp * 1000));
  }
}
